﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="news_ImageManage_Default" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            height: 25px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="button_bar">
        <input id="btnAdd" type="button" class="common_button" value="添加" onclick="document.location='edit.aspx'" />
        <asp:Button ID="btnQuery" runat="server" CssClass="common_button" Text="查询" 
            onclick="btnQuery_Click"  />
    </div>
     <table class="query_form_table">
        <tr>
            <th>
                标题
            </th>
            <td>
                <asp:TextBox ID="txtTitle" runat="server" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;   
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    <table class="data_list_table">
        <tr>
            <th>
                选择
            </th>
            <th>
                编号
            </th>
            <th>
                标题
            </th>
            <th>
                编辑
            </th>
            <th>
                删除
            </th>
        </tr>
        <asp:Repeater ID="rep1" runat="server">
            <ItemTemplate>
                <tr>
                    <td>
                        <input name="select" type="checkbox" tt="aa" id="select" runat="server" />
                    </td>
                    <td>
                        <%# Eval("Id") %>
                    </td>
                    <td>
                        <%# Eval("Title") %>
                    </td>
                    <td>
                        <a href='edit.aspx?id=<%# Eval("id") %>'>
                            <img src="../../images/bt_edit.gif" alt="修改" title="修改" />
                        </a>
                    </td>
                    <td>
                        <a href='delete.aspx?id=<%# Eval("id") %>' onclick="return confirm('是否删除？')">
                        <img src="../../images/bt_del.gif" alt="删除" />
                        </a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
              <tr>
                <th colspan="5" class="pager">
                    <div class="pager">
                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="15" UrlPaging="True">
                        </webdiyer:AspNetPager>
                    </div>
                </th>
            </tr>
    </table>
    
    </form>
</body>
</html>
